package com.xbongbong.paas.manager.feign;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.BaseVO;
import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author guohui.zhang
 * @Title: 工单打印
 * @date 2020/6/2312:19
 */
@FeignClient(name = "pro-web-print",contextId = "printWorkOrderFeignClient")
public interface PrintWorkOrderFeignClient {
    /**
     * 工单支持打印,给线上刷现有公司售后刷默认打印模板
     * @param baseDTO
     * @param lang
     * @return
     */
    @RequestMapping(value = "/pro/v1/print/addDefaultPrintTemplate", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<JSONObject> install(@RequestBody BaseDTO baseDTO, @RequestParam("lang") String lang) throws XbbException;
}
